/************************************************************************
                                                                     
   Xceed Ultimate ListBox for Silverlight                                                                                                                                            
   Copyright (C) 2010 Xceed Software Inc.    
                                                                     
   This program is provided to you under the terms of the GNU General Public  
   License version 2 as published by the Free Software Foundation. 
        
   This program is distributed in the hope that it will be useful, but
   WITHOUT ANY WARRANTY, without even the implied warranty of 
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   General Public License for more details.

   You should have received a copy of the GNU General Public License along 
   with this program, if not, write to the Free Software Foundation, Inc., 
   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

   This program can be provided to you by Xceed Software Inc. under a
   proprietary commercial license agreement for use in non-Open Source
   projects. Visit Xceed.com to find the commercial edition of 
   Xceed Ultimate ListBox for Silverlight.                                    
                                                                      
 **********************************************************************/

using System;
using System.Windows;

namespace Xceed.Silverlight.ListBox.PositioningFunction
{
  internal class HorizontalWrapPositioning : PositioningFunctionBase
  {
    #region DisplayName Property

    internal override string DisplayName
    {
      get
      {
        return "Vertical Wrap Positioning function";
      }
    }

    #endregion

    #region Internal Methods
    internal override void PrepareLayoutPass( double partialOffset, Size itemContainerSize, Size groupContainerSize )
    {
      throw new NotSupportedException( "This method shoudn't be call for the wrap positionning" );
    }

    internal override void PlaceContainerForward( Size container, 
      bool isGroupContainer,
      out Point containerPosition, 
      out double containerProportionInViewport, 
      out int layoutProgressionPercentage, 
      out double rotateAngle )
    {
      throw new NotSupportedException( "This method shoudn't be call for the wrap positionning" );
    }

    internal override void PlaceContainerBackward( Size container, 
      bool isGroupContainer, 
      out Point containerPosition, 
      out double containerProportionInViewport, 
      out int layoutProgressionPercentage, 
      out double rotateAngle )
    {
      throw new NotSupportedException( "This method shoudn't be call for the wrap positionning" );
    }

    internal override Point GetBringIntoViewPositionForContainer( Size groupHeaderContainerSize,
      Size itemContainerSize,
      Size viewportSize,
      bool forwardScrolling )
    {
      throw new NotSupportedException( "This method shoudn't be call for the wrap positionning" );
    }

    internal override double GetScrollOffsetDifferenceBetweenPositions( Point originalPosition, Point targetPosition, Size containerSize )
    {
      throw new NotSupportedException( "This method shoudn't be call for the wrap positionning" );
    }

    internal override Rect GetCorrectedViewportVisibilityRect( Size stickyHeaderSize, Rect viewportVisibilityRect )
    {
      throw new NotSupportedException( "This method shoudn't be call for the wrap positionning" );
    }

    internal override void UpdateEffectiveViewportSizeInPixels( Size newViewportSizeInPixels )
    {
      throw new NotSupportedException( "This method shoudn't be call for the wrap positionning" );
    }

    internal override void CorrectViewportSize( double itemsInViewport, ref Size viewport )
    {
      throw new NotSupportedException( "This method shoudn't be call for the wrap positionning" );
    }

    internal override Point PlaceStickyHeader( Point lastContainerOfTheGroupPosition, Size containerSize, out double angle )
    {
      throw new NotSupportedException( "This method shoudn't be call for the wrap positionning" );
    }

    internal override double GetGroupHeaderProportion()
    {
      throw new NotSupportedException( "This method shoudn't be call for the wrap positionning" );
    }

    internal override Size GetCorrectedContainerSize( Size containerSize, Size viewportSize )
    {
      throw new NotSupportedException( "This method shoudn't be call for the wrap positionning" );
    }


    #endregion

    #region Protected Internal Methods
    protected internal override double GetContainerProportionInEffectiveViewport( Size containerSize, Point containerPosition )
    {
      throw new NotSupportedException( "This method shoudn't be call for the wrap positionning" );
    }
    #endregion
  }
}
